<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>

  <body>
    <div id="app">
      <!-- <input type="text" @input="showinfo" /> -->
      <!-- <button @click="showinfo()">点击加一</button> -->
      <input type="text" @keyup.enter="value=$event.target.value" />
      {{value}}
      <!-- {{count}} -->
    </div>
    <script>
      const vm = new Vue({
        el: "#app",
        data() {
          return {
            count: 0,
            value: "",
          };
        },
        methods: {
          showinfo(e) {
            this.count++;
          },
        },
      });
    </script>
  </body>
</html>
